package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.LandmarkDetailCommend;
import cn.wolfcode.trip.base.query.LandmarkDetailComQueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface LandmarkDetailCommendMapper {
    int deleteByPrimaryKey(Long id);

    int insert(LandmarkDetailCommend record);

    LandmarkDetailCommend selectByPrimaryKey(Long id);

    List<LandmarkDetailCommend> selectAll();

    int updateByPrimaryKey(LandmarkDetailCommend record);

    List<LandmarkDetailCommend> getCommendByCbId(LandmarkDetailComQueryObject qo2);

    List<LandmarkDetailCommend> getCommendByCatalogBigId(@Param("specialSubCommendId") Long specialSubCommendId);

    void deleteRelation(Long catalogBigId);

    int insertRelation(@Param("specialSubCommendId") Long specialSubCommendId, @Param("detailId") Long ticketId);
}